package com.jfeat.am.module.wegou.services.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2018-02-27
 */
@TableName("wg_member")
public class Member extends Model<Member> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 外键/用户id
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 微信提供的 openid
     */
	private String openid;
    /**
     * 头像
     */
	private String avatar;
    /**
     * 微信昵称
     */
	@TableField("wechat_nick_name")
	private String wechatNickName;
    /**
     * 性别
     */
	private String sex;
    /**
     * 国家
     */
	private String country;
    /**
     * 省
     */
	private String province;
    /**
     * 市
     */
	private String city;
    /**
     * 区
     */
	private String district;
    /**
     * 注册时间
     */
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getWechatNickName() {
		return wechatNickName;
	}

	public void setWechatNickName(String wechatNickName) {
		this.wechatNickName = wechatNickName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public static final String ID = "id";

	public static final String USER_ID = "user_id";

	public static final String OPENID = "openid";

	public static final String AVATAR = "avatar";

	public static final String WECHAT_NICK_NAME = "wechat_nick_name";

	public static final String SEX = "sex";

	public static final String COUNTRY = "country";

	public static final String PROVINCE = "province";

	public static final String CITY = "city";

	public static final String DISTRICT = "district";

	public static final String CREATE_TIME = "create_time";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Member{" +
			"id=" + id +
			", userId=" + userId +
			", openid=" + openid +
			", avatar=" + avatar +
			", wechatNickName=" + wechatNickName +
			", sex=" + sex +
			", country=" + country +
			", province=" + province +
			", city=" + city +
			", district=" + district +
			", createTime=" + createTime +
			"}";
	}
}
